//
//  DISAcompllainListTableViewCell.m
//  Distributor
//
//  Created by 主事丫环 on 2019/5/10.
//  Copyright © 2019 主事丫环. All rights reserved.
//

#import "DISAcompllainListTableViewCell.h"

@implementation DISAcompllainListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)refash:(DISAcomplaintLsitModel *)model{
    if ([model.state integerValue]  == 0) {
        //未处理
        self.timeLB.text = [NSString stringWithFormat:@"%@",model.createDate];
        self.stateLB.text =@"未处理";

    }else    if ([model.state integerValue]  == 1) {
        //处理中
        self.timeLB.text  = [NSString stringWithFormat:@"%@",model.knowDate];

        self.stateLB.text =@"处理中";

        
    }else{
        //已处理
        self.timeLB.text = [NSString stringWithFormat:@"%@",model.handleDate];
        self.stateLB.text =@"已处理";


    }
    
    
    self.zhutiLB.text = model.title;
    self.wentiLB.text = model.content;

    
    
}

@end
